core: Ensure we delete duplicate files in a transaction
authorColin Walters <walters@verbum.org>
Sun, 15 Jan 2012 17:25:52 +0000 (12:25 -0500)
committerColin Walters <walters@verbum.org>
Sun, 15 Jan 2012 17:25:52 +0000 (12:25 -0500)
commitebe35dbefe1c39b98ff86db34f7fc5d24fbc2cef
treee9b107953c5c7a47ade689013552aef9da43b810
parent9910c0ddf4659723b910fc33117b0a23ba82001b
core: Ensure we delete duplicate files in a transaction

If multiple files have the same hash, we need to ensure we're not
overwriting other tempfiles in the same transaction.  Instead
just delete them, since we know they're in the repo.
src/libostree/ostree-core.c
src/libostree/ostree-repo.c